package com.ruoyi.womp.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡检记录对象 womp_osi_record
 * 
 * @author mzz
 * @date 2023-05-11
 */
public class WompOsiRecord extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 主键 */
	private Integer id;

	/** 衡器编号 */
	@Excel(name = "衡器编号")
	private String waCode;

	/** 工单号 */
	@Excel(name = "工单号")
	private Integer workorderId;

	/** 巡检类型 */
	@Excel(name = "巡检类型")
	private Integer osiPlanType;

	/** 巡检人 */
	@Excel(name = "巡检人")
	private String osiUser;

	/** 巡检日期 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "巡检日期", width = 30, dateFormat = "yyyy-MM-dd")
	private Date osiDate;

	/** 附件 */
	@Excel(name = "附件")
	private String fileSource;

	/** 巡检记录明细信息 */
	private List<WompOsiRecordItem> wompOsiRecordItemList;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setWaCode(String waCode) {
		this.waCode = waCode;
	}

	public String getWaCode() {
		return waCode;
	}

	public Integer getWorkorderId() {
		return workorderId;
	}

	public void setWorkorderId(Integer workorderId) {
		this.workorderId = workorderId;
	}

	public void setOsiPlanType(Integer osiPlanType) {
		this.osiPlanType = osiPlanType;
	}

	public Integer getOsiPlanType() {
		return osiPlanType;
	}

	public void setOsiUser(String osiUser) {
		this.osiUser = osiUser;
	}

	public String getOsiUser() {
		return osiUser;
	}

	public void setOsiDate(Date osiDate) {
		this.osiDate = osiDate;
	}

	public Date getOsiDate() {
		return osiDate;
	}

	public void setFileSource(String fileSource) {
		this.fileSource = fileSource;
	}

	public String getFileSource() {
		return fileSource;
	}

	public List<WompOsiRecordItem> getWompOsiRecordItemList() {
		return wompOsiRecordItemList;
	}

	public void setWompOsiRecordItemList(List<WompOsiRecordItem> wompOsiRecordItemList) {
		this.wompOsiRecordItemList = wompOsiRecordItemList;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("waCode", getWaCode()).append("osiPlanType", getOsiPlanType()).append("osiUser", getOsiUser())
				.append("osiDate", getOsiDate()).append("remark", getRemark()).append("fileSource", getFileSource())
				.append("createTime", getCreateTime()).append("createBy", getCreateBy())
				.append("updateTime", getUpdateTime()).append("updateBy", getUpdateBy())
				.append("wompOsiRecordItemList", getWompOsiRecordItemList()).toString();
	}
}
